package com.ruoyi.transaction.domain;

import com.ruoyi.core.domain.Members;
import com.ruoyi.core.domain.StoreInfo;
import com.ruoyi.transaction.domain.VO.SpuVO;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 商品评价对象 product_comments
 * 
 * @author yzm
 * @date 2025-08-07
 */
public class YZMProductComments extends BaseEntity
{
    private static final long serialVersionUID = 1L;
//用户
    private Members members;
    public Members getMembers() {
        return members;
    }
    public void setMembers(Members members) {
        this.members = members;
    }
//商户
    private StoreInfo storeInfo;
    public StoreInfo getStoreInfo() {
        return storeInfo;
    }
    public void setStoreInfo(StoreInfo storeInfo) {
        this.storeInfo = storeInfo;
    }
//订单
    private ShopOrder shopOrder;
    public ShopOrder getShopOrder() {
        return shopOrder;
    }

    public void setShopOrder(ShopOrder shopOrder) {
        this.shopOrder = shopOrder;
    }
//spu
    private SpuVO spu;

    public SpuVO getSpu() {
        return spu;
    }

    public void setSpu(SpuVO spu) {
        this.spu = spu;
    }

    /** 评论ID */
    private Integer id;

    /** 门店ID */
    @Excel(name = "门店ID")
    private Integer storeInfoId;

    /** 订单ID */
    @Excel(name = "订单ID")
    private Integer shopOrderId;

    /** 商品SPU ID */
    @Excel(name = "商品SPU ID")
    private Integer spuId;

    /** 商品SKU ID */
    @Excel(name = "商品SKU ID")
    private Integer skuId;

    /** 用户ID */
    @Excel(name = "用户ID")
    private Integer membersId;

    /** 用户名 */
    @Excel(name = "用户名")
    private String username;

    /** 评分，1~5星 */
    @Excel(name = "评分，1~5星")
    private Integer rating;

    /** 评论内容 */
    @Excel(name = "评论内容")
    private String content;

    /** 评论图片 */
    @Excel(name = "评论图片")
    private String images;

    /** 是否匿名评价：0-否，1-是 */
    @Excel(name = "是否匿名评价：0-否，1-是")
    private Integer isAnonymous;

    /** 是否展示：0-隐藏 1-展示 */
    @Excel(name = "是否展示：0-隐藏 1-展示")
    private Integer isShow;

    /** 回复数量 */
    @Excel(name = "回复数量")
    private Integer replyCount;

    /** 逻辑删除：0-未删除 1-已删除 */
    private String delFlag;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setStoreInfoId(Integer storeInfoId) 
    {
        this.storeInfoId = storeInfoId;
    }

    public Integer getStoreInfoId() 
    {
        return storeInfoId;
    }

    public void setShopOrderId(Integer shopOrderId) 
    {
        this.shopOrderId = shopOrderId;
    }

    public Integer getShopOrderId() 
    {
        return shopOrderId;
    }

    public void setSpuId(Integer spuId) 
    {
        this.spuId = spuId;
    }

    public Integer getSpuId() 
    {
        return spuId;
    }

    public void setSkuId(Integer skuId) 
    {
        this.skuId = skuId;
    }

    public Integer getSkuId() 
    {
        return skuId;
    }

    public void setMembersId(Integer membersId) 
    {
        this.membersId = membersId;
    }

    public Integer getMembersId() 
    {
        return membersId;
    }

    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }

    public void setRating(Integer rating) 
    {
        this.rating = rating;
    }

    public Integer getRating() 
    {
        return rating;
    }

    public void setContent(String content) 
    {
        this.content = content;
    }

    public String getContent() 
    {
        return content;
    }

    public void setImages(String images) 
    {
        this.images = images;
    }

    public String getImages() 
    {
        return images;
    }

    public void setIsAnonymous(Integer isAnonymous) 
    {
        this.isAnonymous = isAnonymous;
    }

    public Integer getIsAnonymous() 
    {
        return isAnonymous;
    }

    public void setIsShow(Integer isShow) 
    {
        this.isShow = isShow;
    }

    public Integer getIsShow() 
    {
        return isShow;
    }

    public void setReplyCount(Integer replyCount) 
    {
        this.replyCount = replyCount;
    }

    public Integer getReplyCount() 
    {
        return replyCount;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("storeInfoId", getStoreInfoId())
            .append("shopOrderId", getShopOrderId())
            .append("spuId", getSpuId())
            .append("skuId", getSkuId())
            .append("membersId", getMembersId())
            .append("username", getUsername())
            .append("rating", getRating())
            .append("content", getContent())
            .append("images", getImages())
            .append("isAnonymous", getIsAnonymous())
            .append("isShow", getIsShow())
            .append("replyCount", getReplyCount())
            .append("delFlag", getDelFlag())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
